/*
 * @Author: tcosfish
 * @Date: 2022-08-19 16:19:42
 * @LastEditors: tcosfish
 * @LastEditTime: 2022-08-19 17:04:33
 * @FilePath: \loadFile\src\utils\shortPath.ts
 */

import { join } from "path"

function shortPath(name: string, ext: string, other: string = "/") {
  return join(
    __dirname,
    "../../",
    `public/uploads/${ext}${other}${name}.${ext}`
  )
}

export { shortPath }
